package br.com.efacta.bagarita.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Representação de um assunto dentro de uma disciplina escolar
 * 
 * @author felipe.rico
 * 
 */
@Document(collection = "subjects")
public class Subject {

    @Id
    private String id;

    private String name;

    @DBRef
    private Discipline discipline;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Discipline getDiscipline() {
        return discipline;
    }

    public void setDiscipline(Discipline discipline) {
        this.discipline = discipline;
    }

}
